#!/bin/bash

CHAR=$1

FILES=`ls ./*.txt`

for file in $FILES
do
    echo $file 
    cat $file | tr -d '\n' | tr $CHAR '\n' | wc -l
done
